package cn.edu.ujn.lab3.dao;

import java.util.List;

public interface ProductsMapper {
    
    int deleteByPrimaryKey(Integer id);

    int insert(Products record);

    int insertSelective(Products record);

    Products selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Products record);

    int updateByPrimaryKey(Products record);
    
    // 商品列表
    List<Products> selectProductList(Products products);

    // 商品数
    Integer selectProductsListCount(Products products);
    
    //根据产品名查询产品
    Products selectByName(String prodName);
}